﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;

namespace Delay
{
    public class TypeAreaItem : INotifyPropertyChanged
    {
        private string _ppid;
        public  string Ppid
        {
            get
            {
                return _ppid;
            }
            set
            {
                if (_ppid != value)
                {
                    _ppid = value;
                    NotifyPropertyChanged("Ppid");
                }
            }
        }
        private string _type;
        public string Type
        {
            get
            {
                return _type;
            }
            set
            {
                if (_type != value)
                {
                    _type = value;
                    NotifyPropertyChanged("Type");
                }
            }
        }
        private string _ppname;
        public string Ppname
        {
            get
            {
                return _ppname;
            }
            set
            {
                if (_ppname != value)
                {
                    _ppname = value;
                    NotifyPropertyChanged("Ppname");
                }
            }
        }
        private string _enname;
        public string Enname
        {
            get
            {
                return _enname;
            }
            set
            {
                if (_enname != value)
                {
                    _enname = value;
                    NotifyPropertyChanged("Enname");
                }
            }
        }
        private string _typeid;
        public string Typeid
        {
            get
            {
                return _typeid;
            }
            set
            {
                if (_typeid != value)
                {
                    _typeid = value;
                    NotifyPropertyChanged("Typeid");
                }
            }
        }
        private string _pnums;
        public string Pnums
        {
            get
            {
                return _pnums;
            }
            set
            {
                if (_pnums != value)
                {
                    _pnums = value;
                    NotifyPropertyChanged("Pnums");
                }
            }
        }
        private string _logourl;
        public string Logourl
        {
            get
            {
                return _logourl;
            }
            set
            {
                if (_logourl != value)
                {
                    _logourl = value;
                    NotifyPropertyChanged("Logourl");
                }
            }
        }
        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
